namespace Digitalmes.Application.Mes.Equipments.Alarms;

/// <summary>
/// 设备警报定义项 DTO 对象。
/// </summary>
public sealed class EquipAlarmItemDto : Dto
{
    /// <summary>
    /// 产线代码
    /// </summary>
    [NotNull]
    public string? LineCode { get; set; }

    /// <summary>
    /// 工作中心（区域/工位/设备）
    /// </summary>
    [NotNull]
    public string? WorkCenter { get; set; }

    /// <summary>
    /// 顺序号，从 1 开始。
    /// </summary>
    public int Index { get; set; }

    /// <summary>
    /// 警报内容
    /// </summary>
    [NotNull]
    public string? Content { get; set; }

    /// <summary>
    /// 警报分类
    /// </summary>
    [NotNull]
    public string? Category { get; set; }

    /// <summary>
    /// 警报级别
    /// </summary>
    public AlarmLevelEnum AlarmLevel { get; set; }

    public string? CreatedBy { get; set; }

    public DateTime CreatedTime { get; set; }

    public string? UpdatedBy { get; set; }

    public DateTime? UpdatedTime { get; set; }
}
